package cn.edu.sjtu.blank.vo;

import cn.edu.sjtu.blank.enums.ResultEnum;
import lombok.Data;

@Data
public class ResultVO<T> {

  private String status;
  private String message;
  private T data;

  public ResultVO(ResultEnum resultEnum) {
    this.status = resultEnum.getCode();
    this.message = resultEnum.getMessage();
  }
}
